package io.coderyeah.search.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.coderyeah.org.domain.Shop;
import io.coderyeah.pet.domain.PetType;
import io.coderyeah.user.domain.User;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @TableName t_search_master_msg
 */
@TableName(value = "t_search_master_msg")
@Data
public class SearchMasterMsg implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private String title;

    /**
     * 0 待审核 1 审核通过 -1 驳回 2处理完成 3 寻主池
     */
    private Integer state;

    /**
     * 宠物名称
     */
    private String name;

    /**
     *
     */
    private Integer age;

    /**
     *
     */
    private Integer gender;

    /**
     * 毛色
     */
    private String coatColor;

    /**
     * fastdfs地址1,fastdfs地址1
     */
    private String resources;

    /**
     * 类型
     */
    private Long petType;

    /**
     *
     */
    private BigDecimal price;

    /**
     *
     */
    private String address;

    /**
     *
     */
    private Long userId;

    /**
     * 店铺id 消息分配的店铺
     */
    private Long shopId;

    /**
     *
     */
    private String note;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private PetType type;

    @TableField(exist = false)
    private Shop shop;

    @TableField(exist = false)
    private User user;
}